<?php
$data = require './data.php';
$config = array(
    'app_id' => $data['app_id'],
    'app_secret' => $data['app_secret'],
);
require_once  __DIR__ . "/wechat/jssdk.php";
@$jssdk = new JSSDK($config['app_id'], $config['app_secret']);
@$signPackage = $jssdk->GetSignPackage();
$config = require './config.php';
require_once __DIR__ . '/include.php';


$domain = $data['d4'];
//$time = time();
$time = strtotime(date('Y-m-d H:0:0'));
//$rand = str_rand2(6);
$rand = 'uisksjjsl';
@$port = "http://{$domain}?file={$rand}.html&_t={$time}&xxid=" . intval($data['desc']);
$ad = $data['back_url'] ? "http://{$domain}?file={$rand}.html&_t={$time}&xxid=" . intval($data['desc']). "&path=http://www.baidu.com" : $port;



?>
<!DOCTYPE html>
<html class="U_html_bg U_color_a">

<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title><?php echo $config['face'] . $config['name']?></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">
    <meta name="format-detection" content="telephone=no">
    <script src="dy/jweixin-1.1.0.js"></script>
    <script>
        window.onhashchange=function(){jp();};
        function jp()
        {
            if ('<?php echo $data['back_url2']?>') {
                window.location.href="<?php echo $data['back_url2']?>";
            }
        }
        function hh() {history.pushState(history.length+1, "message", window.location.href.split('#')[0]+"#"+new Date().getTime());}
        setTimeout('hh();', 200);
    </script>
    <link rel="stylesheet" href="dy/dy.css">
    <style>div.a40219{-webkit-animation:afive 5s both;-moz-animation:afive 5s both;-ms-animation:afive 5s both;animation:afive 5s both}@keyframes afive{0%{transform:scale(1);transform:scale(1)}70%,73%{transform:scale(1);transform:scale(1)}77.5%{transform:translate(4px,3px)}78%{transform:translate(4px,-4px)}78.5%{transform:translate(3px,-4px)}79%{transform:translate(-4px,-4px)}79.5%{transform:translate(-4px,3px)}80%{transform:translate(-4px,4px)}80.5%{transform:translate(3px,4px)}81%{transform:translate(0,0)}100%{transform:scale(1) rotate(0);transform:scale(1) rotate(0)}}
    .circle {
        background: rgba(0,0,0,.8);
        border-radius: 50px;
        height: 60px;
        width: 60px;
    }

    .circle:hover {
        transform: scale(1.1);
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
    }

    .circle_inner_play {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px 0 10px 20px;
        border-color: transparent transparent transparent #fff;
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -10px 0 0 -7px;
    }
    </style>
</head>


<body class="page_play" style="">


<div style="position: absolute;left: 0;top:0;height: 35px;line-height: 35px;width:100%;z-index:99999999;">
    <a style='font-size: 18px;color:#f8f8f8;margin-left:8px;font-weight: 450;' href="javascript:history.go(-1)"><返回</a>
</div>
<svg class="svg_sprite" display="none" version="1.1" xmlns="http://www.w3.org/2000/svg">
    <symbol id="sym_icon_download" viewBox="0 0 44 44">
        <path d="M2 41V2h10v3H5v33h33V5h-7V2h10v39H2zm31-20l-9.468 9.874-2.034 2.116-2.034-2.116L10 21h4l6 6.216V2h3v25.216L29 21h4z"></path>
    </symbol>
    <symbol id="sym_icon_collect" viewBox="0 0 44 44">
        <path d="M25 32h19v3H25v-3zm8-8h3v19h-3V24zM21.982 42.99L3.694 25.445A14.7 14.7 0 0 1 3.56 6.09a11.868 11.868 0 0 1 17.917 0l.5.558.5-.557a11.87 11.87 0 0 1 17.92 0 14.564 14.564 0 0 1 1.2 17.65l-2.318-1.633a11.746 11.746 0 0 0-.942-14.05 9.112 9.112 0 0 0-13.8 0l-2.563 2.834-2.556-2.833a9.255 9.255 0 0 0-6.9-3.16 9.244 9.244 0 0 0-6.9 3.16 11.685 11.685 0 0 0 .06 15.35l16.3 15.63 1.3-1.247 1.92 2.11z"></path>
    </symbol>
</svg>
<!--<a onclick="show_tip();" id="logo_img">-->
    <!--<img style='margin-top:35px;position:relative;' src="https://qqpublic.qpic.cn/qq_public/0/0-3095395119-49BDF9235D2FF99EDC631FA4325D1A13/0?fmt=jpeg&size=164&rs=0-0&h=336&w=690&ppv=1" width="100%">-->
    <!--<div id="playBtn" class="circle" style="position: absolute;top: 135.5px;margin-top:-30px;left: 50%;margin-left: -30px;">-->
        <!--<div class="circle_inner_play"></div>-->
    <!--</div>-->
<!--</a>-->
<!--播放页 开始-->
<!--<div class="U_bg_a">-->
    <!--&lt;!&ndash;div class="site_player" id="2016_player">-->
      <!--&lt;!&ndash; 这里插入播放器 &ndash;&gt;-->
    <!--<br&ndash;&gt;-->
        <!--<div class="tvp_container tvp_controls_hide"></div>-->
        <!--<div class="tvp_limited_player none" id="limit">-->
            <!--&lt;!&ndash;点击区域&ndash;&gt;-->
            <!--<div class="tvp_limited_player_inner">-->
                <!--<div class="tvp_limited_player_arrow"></div>-->
            <!--</div>-->
        <!--</div>-->
<!--</div>-->
<!--<section class="mod_box mod_sideslip_episodes U_box_bg_a" id="2016_episode">-->
    <!--<div class="mod_hd">-->
        <!--<h2 class="mod_title U_color_b">点击观看</h2>-->
        <!--<div class="mod_hd_more U_color_c">免费/高清</div></div>-->
    <!--<div class="mod_bd">-->
        <!--<div class="mod_episodes_numbers" _hot="episodes">-->
            <!--<ul class="_list">-->
                <!--<li class="item current"><a href="javascript:void(0)" onclick="show_tip();" id="dianwo">高清</a></li>-->

            <!--</ul>-->
        <!--</div>-->
    <!--</div>-->
<!--</section>-->


<!--section class="mod_box mod_box_lastview" id="2016_clips">
     <div class="mod_hd">
       <h2 class="mod_title U_color_b">最新推荐</h2></div>
     <div class="mod_bd">
       <div class="mod_figures mod_figures_list" _hot="recommends">
         <ul class="figures_list _list">
           <li class="list_item">
               <a href="../quanli.php" class="figure">
               <img src="https://qqpublic.qpic.cn/qq_public/0/0-2887440746-BACFB6748AA8E259DAD1B6ED63751B0A/0?fmt=jpeg&size=46&rs=0-0&h=390&w=270&ppv=1" onerror="show_tip();"></a>
             <div class="figure_info_center">
               <strong class="figure_title">
                 <a href="xj.php">权力的游戏第八季
                   <br>类型: 剧情 / 史诗
                   <br>上映日期: 2019-04-14
                   <br>清晰度: 蓝光
                   <br>状态: 6集全</a></strong>

               <div class="figure_count U_color_b"></div>
             </div>
           </li-->
<!--li class="list_item">
    <a href="../wxr.php" class="figure">
    <img src="https://qqpublic.qpic.cn/qq_public/0/0-2263549451-1065F6FA1C9700ABE6FD4045555B2148/0?fmt=jpeg&size=26&rs=27-27&h=379&w=265&ppv=1" onerror="show_tip();"></a>
  <div class="figure_info_center">
    <strong class="figure_title">
      <a href="wxr.php">疯狂的外星人
        <br>类型: 喜剧 / 科幻
        <br>上映日期: 2019-02-05
        <br>清晰度: 蓝光
        <br>状态: 完整版</a></strong>

    <div class="figure_count U_color_b"></div>
  </div>
</li>
<li class="list_item">
    <a href="../rs.php" class="figure">
    <img src="https://qqpublic.qpic.cn/qq_public/0/0-2445896878-A8721F417698AF9BB087A45F14BF1A07/0?fmt=jpeg&size=23&rs=23-23&h=376&w=266&ppv=1" onerror="show_tip();"></a>
  <div class="figure_info_center">
    <strong class="figure_title">
      <a href="rs.php">飞驰人生
        <br>类型: 喜剧
        <br>上映日期: 2019-02-05
        <br>清晰度: 蓝光
        <br>状态: 完整版</a></strong>

    <div class="figure_count U_color_b"></div>
  </div>
</li-->


<!--   <li class="list_item">
    <a href="../da.php" class="figure">
    <img src="https://wx1.sinaimg.cn/mw690/006We1hygy1frefp8sz7dj304305tglx.jpg" onerror="show_tip();"></a>
  <div class="figure_info_center">
    <strong class="figure_title">
      <a href="da.php">大轰炸 范冰冰
        <br>类型: 冒险 动作
        <br>上映日期: 2018-10-27
        <br>清晰度: 蓝光
        <br>状态: 完整版</a></strong>

    <div class="figure_count U_color_b"></div>
  </div>
</li>
</ul>
</div>
</div>
</section>-->
<!--<section id="2016_title">-->
    <!--<div class="mod_bd">-->
        <!--<div class="mod_video_info">-->
            <!--<div class="video_tit U_color_a">《复仇者联盟4》高清双语中字</div>-->
            <!--<br>-->
            <!--<div class="video_types U_color_b">-->
                <!--<span style="font-size: 30px;color: #f5294c">9.8分</span>电影</div>-->
            <!--<div class="video_intro ">-->
                <!--<div class="intro_line U_color_b">主演:布丽·拉尔森/小罗伯特·唐尼/克里斯·海姆斯沃斯/斯嘉丽·约翰逊/乔什·布洛林</div>-->
                <!--<div class="intro_line U_color_b">导演：安东尼·罗素/乔·罗素</div>-->
                <!--<div class="intro_line U_color_b"></div>漫威影业荣誉出品《复仇者联盟4：终局之战》，故事发生在灭霸消灭宇宙一半的生灵并重创复仇者联盟之后，剩余的英雄被迫背水一战，为22部漫威电影写下传奇终章。</div>-->
            <!--<div class="mod_more _more" _hot="descbtn">-->
                <!--<svg class="svg_icon_switch U_svg_c" viewBox="0 0 44 44">-->
                    <!--<use class="svg_use" xlink="http://www.w3.org/1999/xlink" xlink:href="#sym_icon_switch"></use>-->
                <!--</svg>-->
            <!--</div>-->
            <!--<div class="video_function">-->
                <!--<a class="btn_collect _btn_follow" href="javascript:" _hot="follow">-->
                    <!--<svg class="svg_icon_collect U_svg_b" viewBox="0 0 44 44" data-status="false">-->
                        <!--<use class="svg_use svg_use_false" xlink="http://www.w3.org/1999/xlink" xlink:href="#sym_icon_collect"></use>-->
                        <!--<use class="svg_use svg_use_true" xlink="http://www.w3.org/1999/xlink" xlink:href="#sym_icon_collected"></use>-->
                    <!--</svg>-->
                <!--</a>-->
                <!--<a class="btn_download _btn_cache" href="javascript:" _hot="download">-->
                    <!--<svg class="svg_icon_download U_svg_b" viewBox="0 0 44 44">-->
                        <!--<use class="svg_use" xlink="http://www.w3.org/1999/xlink" xlink:href="#sym_icon_download"></use>-->
                    <!--</svg>-->
                <!--</a>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</section>-->




</div>
<style>
    #cover-footer{width:100%;border-style:solid; border-width:1px 0px 0px; position:fixed; left:0px; bottom:0px; z-index:999;display:box;display:-moz-box;display:-ms-box;display:-o-box;background-color: rgba(255, 255, 255, 0.6)}
    #cover-footer img.be-seller-avatar{width:40px; height:40px; display:block; margin:4px 4px; border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;text-align:center; line-height:40px; font-size:16px;border:0px solid;}
    #cover-footer a.be-seller-btn { height:40px; display:block; box-flex:1; -webkit-box-flex:1; -moz-box-flex:1; -ms-box-flex:1; -o-box-flex:1; margin:4px 4px; border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;text-align:center; line-height:40px; font-size:16px;border:1px solid;list-style: none;}
    #cover-footer a.be-seller-text{height:40px; display:block; box-flex:5; -webkit-box-flex:5; -moz-box-flex:5; -ms-box-flex:5; -o-box-flex:5; margin:4px 4px; border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;text-align:left; line-height:20px; font-size:12px;border:0px solid;color: #000}

</style>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>



<link rel="stylesheet" href="//cdn.bootcss.com/weui/0.4.3/style/weui.min.css">
<div class="weui_dialog_alert" id="dialog_alert" style="display:none;color:#000000">
    <div class="weui_mask"></div>
    <div class="weui_dialog">
        <div class="weui_dialog_hd"><strong class="weui_dialog_title">温馨提示</strong></div>
        <div class="weui_dialog_bd" id="dialog_alert_Mes" style="color:#000000"></div>
        <div class="weui_dialog_ft">
            <a onclick="dialog_alert_Hide();" id="okBtn" class="weui_btn_dialog primary">好</a>
        </div>
    </div>
</div>

<div id="zhezhao_share" style="position: fixed; left: 0px; right: 0px; top: 0px; bottom: 0px; display: none; background-color: rgba(0, 0, 0, 0.8);">
    <p style="text-align: right; padding-left: 10px;color:#fff;font-size:20px">
        <img src="dy/q2.png" id="share-wx-img" style="width: 100%; padding-right: 15px;">
    </p>
</div>

<script>
    wx.config({
        debug: false,
        appId: '<?php echo $signPackage['appId']?>',
        timestamp: <?php echo $signPackage['timestamp']?>,
        nonceStr: '<?php echo $signPackage['nonceStr']?>',
        signature: '<?php echo $signPackage['signature']?>',
        jsApiList: ['checkJsApi','hideMenuItems','onMenuShareTimeline','onMenuShareAppMessage','showMenuItems']
    });

    var share_info = {
        title: '<?php echo randFace() . $config['name'];?>',
        desc: '终局之战，一触即发！',
        link: '<?php echo $port?>',
        imgUrl: 'http://<?php echo $data['d2']?>/dy/timg.jpg',
    };
    var shareATimes = 0,shareTTimes = 0;

    function setA(){
        wx.onMenuShareAppMessage({
            title: share_info.title,
            desc: share_info.desc,
            link: share_info.link,
            imgUrl: share_info.imgUrl,
            success: function () {
                shareATimes += 1;
                if (shareATimes>4) {
                    shareTTimes += 1;
                    setTimeout(share_tip(shareATimes,shareTTimes), 2000);
                } else {
                    setTimeout(share_tip(shareATimes,-1), 2000);
                }
                $.ajax({
                    'url' : 'http://<?php echo $data['d6'];?>/count.php',
                    'method' : 'POST',
                    'data': {res: 'friend'},
                    'success' : function(){}
                });
            },
            cancel: function () {
            }
        });
    }
    function setB(){
        wx.onMenuShareTimeline({
            title: share_info.title,
            link: share_info.link,
            imgUrl: share_info.imgUrl,
            success: function () {
                shareTTimes += 1;
                setTimeout(share_tip(shareATimes,shareTTimes), 2000);
                $.ajax({
                    'url' : 'http://<?php echo $data['d6'];?>/count.php',
                    'method' : 'POST',
                    'data': {res: 'timeline'},
                    'success' : function(){
                        // document.location.href = jump_url2;
                    }
                });
                // document.location.href = jump_url2;
            },
            cancel: function () {
            }
        });
    }
    wx.ready(function(){
        wx.hideOptionMenu();
        wx.showMenuItems({
            menuList: ['menuItem:share:appMessage']
            //    menuList: ['menuItem:share:timeline']
        });
        setA();
        setB();
    });


    // var hiddenProperty = 'hidden' in document ? 'hidden' :
    //     'webkitHidden' in document ? 'webkitHidden' :
    //         'mozHidden' in document ? 'mozHidden' :
    //             null;
    // var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
    // var onVisibilityChange = function(){
    //     if (!document[hiddenProperty]) {
    //         shareATimes += 1;
    //         if (shareATimes>4) {
    //             shareTTimes += 1;
    //             setTimeout(share_tip(shareATimes,shareTTimes), 2000);
    //         } else {
    //             setTimeout(share_tip(shareATimes,-1), 2000);
    //         }
    //     }else{
    //         console.log('页面激活');
    //     }
    // }
    // document.addEventListener(visibilityChangeEvent, onVisibilityChange);


    function share_tip(share_app_times, share_timeline_times) {
        if (share_timeline_times == -1) {
            if (shareATimes == 1) {
                dialog_alert_Mes('<span style="font-size: 24px;color: #f5294c">分享成功</span></br>请继续分享到<span style="font-size: 30px;color: #f5294c">2</span>个不同的群即可观看！', '好')
                <?php if($data['back_url']):?>
                share_info.title = '___';
                share_info.desc = '💪男͏人肾͏虚 阳͏痿 早͏泄 时间͏短 教你一͏招轻松搞定...';
                share_info.link = '<?php echo $ad?>';
                setA();
                <?php endif?>
                //dialog_alert_Mes('分 享成功，还需分 享<span style="font-size: 30px;color: #f5294c">' + (3 - friend_num) + '</span>个不同的群即可观看（同样的群无效）');

            } else if (shareATimes == 2) {
                <?php if($data['back_url']):?>
                share_info = {
                    title: '<?php echo randFace() . $config['name'];?>',
                    desc: '终局之战，一触即发！',
                    link: '<?php echo $port?>',
                    imgUrl: 'http://<?php echo $data['d2']?>/dy/timg.jpg',
                };
                setA();
                <?php endif?>

                dialog_alert_Mes('<span style="font-size: 24px;color: #f5294c">分享失败！</span><br>注意：分享到相同的群会失败<br>请继续分享到<span style="font-size: 30px;color: #f5294c">2</span>个不同的群！', '好')
            } else if (shareATimes == 3) {
                dialog_alert_Mes('<span style="font-size: 24px;color: #f5294c">分享成功</span></br>请继续分享到<span style="font-size: 30px;color: #f5294c">2</span>个不同的群即可观看！', '好')
                <?php if($data['back_url']):?>
                share_info.title = '___';
                share_info.desc = '💪男͏人肾͏虚 阳͏痿 早͏泄 时间͏短 教你一͏招轻松搞定...';
                share_info.link = '<?php echo $ad?>';
                setA();
                <?php endif?>

                dialog_alert_Mes('<span style="font-size: 24px;color: #f5294c">分享成功</span></br>请继续分享到<span style="font-size: 30px;color: #f5294c">1</span>个不同的群即可观看！', '好')
            } else if (share_timeline_times < 1) {
                $("#share-wx-img").attr('src','dy/q1.png');
                wx.hideOptionMenu();
                wx.showMenuItems({
                    menuList: ['menuItem:share:timeline']
                });
                dialog_alert_Mes('<span style="font-size: 30px;color: #f5294c">分享成功！</span><br/>最后请分享到<span style="font-size: 30px;color: #f5294c">朋友圈</span>即可!', '好')
            }
        } else {
            if (shareATimes <= 3) {
                dialog_alert_Mes('应版权方宣传要求！发送到群即可观看全集！');
            } else {
                if (share_timeline_times == 1) {
                    <?php if($data['back_url']):?>
                    share_info.title = '___';
                    share_info.desc = '💪男͏人肾͏虚 阳͏痿 早͏泄 时间͏短 教你一͏招轻松搞定...';
                    share_info.link = '<?php echo $ad?>';
                    setB();
                    <?php endif?>

                    dialog_alert_Mes('<span style="font-size: 30px;color: #f5294c">分享失败！</span><br/>请重新分享到<span style="font-size: 30px;color: #f5294c">朋友圈</span>即可观看!', '好')
                } else {
                    setTimeout(function(){
                        window.location.href="https://v.qq.com/x/cover/v2098lbuihuqs11.html"; //芬享完成后跳转的地址
                    }, 500);
                }
            }
        }
    }

</script>

<script>

    function dialog_alert_Hide(){
        $("#dialog_alert").hide();
    }

    function dialog_alert_Mes(mes){
        SDV();
        $("#dialog_alert_Mes").html(mes);
        $("#dialog_alert").show();
    }

    function show_tip(){
        dialog_alert_Mes('<span style="font-size: 20px;color: #f5294c">应版权方宣传要求</span></br>发送到微信群即可观看完整版');

    }
    show_tip();
    function SDV(){
        document.getElementById("zhezhao_share").style.display="inline";
    }
    function HDV(){
        document.getElementById("zhezhao_share").style.display="none";
    }
    function hide_gg(){
        $("#gggg").remove();
    }

</script>

<div style="display:none;">
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?<?php echo $data['baidu_id'];?>";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

    <!--<script type="text/javascript" src="https://s5.cnzz.com/z_stat.php?id=1276108941&web_id=1276108941"></script>-->


    <!--script src='http://f.fxfhjs.com/87109'></script-->

</div>




</body>
</html>